﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Register Src="~/Views/Category/Category.ascx" TagName="category" TagPrefix="uc" %>
<%@ Register Src="~/Views/Shared/Button.ascx" TagName="button" TagPrefix="uc" %>

<%
    int lang = (int)ViewData["Language"];
    VietImage.Models.Category cat = (VietImage.Models.Category)ViewData["Category"];
    if (cat != null)
    {
%>
<div class="essayitem">
    <uc:category ID="cat1" runat="server" />
    <div class="essayitem_detail">
        <div class="essayitem_city">
            <span class="label">Thành phố: </span> <%= cat.City.Name %>
        </div>
        <div class="essayitem_country">
            <span class="label">Quốc gia: </span> <%= cat.City.Country.Name %>
        </div>
        <div class="essayitem_content">
            <span class="label">Nội dung: </span> <%= cat.GetDetail(lang).Description %>
        </div>
        <div class="essayitem_date">
            <span class="label">Ngày chụp: </span> <%= cat.CreatedTime.ToString("d/M/yyyy") %>
        </div>
        <div class="essayitem_author">
            <span class="label">Tác giả: </span> <%= cat.Author %>
        </div>
        <div class="essayitem_credit">
            <span class="label">Credit: </span> VietImage
        </div>
    </div>
    <div class="clear"></div>
</div>
<%
    }
 %>
